package priv.tuyou.system.po;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import priv.tuyou.po.LogicDeletePo;

/**
 * 文章
 * @author：涂有
 * @date 2016年12月26日 上午10:43:04
 */
public class Article extends LogicDeletePo{

	/**
	 * id
	 */
	protected long id;
	
	/**
	 * 标题
	 */
	@NotBlank
	@Length(min=1, max=128)
	protected String title;
	
	/**
	 * 概要
	 */
	@NotBlank
	@Length(min=1, max=1024)
	protected String outline;
	
	/**
	 * 封面
	 */
	@NotBlank
	protected String cover;
	
	/**
	 * 内容
	 */
	protected String content;
	
	/**
	 * 查看数
	 */
	protected int viewCount;
	
	/**
	 * 评价数
	 */
	protected int commentCount;
	
	/**
	 * 标签
	 */
	protected String tag;
	
	/**
	 * 是否推荐
	 */
	protected boolean recommend;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getOutline() {
		return outline;
	}

	public void setOutline(String outline) {
		this.outline = outline;
	}

	public String getCover() {
		return cover;
	}

	public void setCover(String cover) {
		this.cover = cover;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getViewCount() {
		return viewCount;
	}

	public void setViewCount(int viewCount) {
		this.viewCount = viewCount;
	}

	public int getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public boolean isRecommend() {
		return recommend;
	}

	public void setRecommend(boolean recommend) {
		this.recommend = recommend;
	}
}
